<div id="result">
            <div style=" background: none repeat scroll 0 0 #364F7E; color: #FFFFFF; height: 20px; width: 100%;font-size: 15px;">Dispute</div>
            <br style="clear: both;" />
            <form accept-charset="utf-8" action="<?php echo Configure::read('base_url'); ?>products/create_dispute/" method="post" id="productmessage">
                <table cellspacing="5" >
                    <tbody>
                        <tr>
                            <td class="tdtext">Product ID:</td>
                            <td class="tddata"><?php                           
                            echo $productinfo['Product']['id']; ?></td>
                        </tr>
                        <tr>
                            <td class="tdtext">Product Title:</td>
                            <td class="tddata"><?php echo $productinfo['Product']['products_title']; ?></td>
                        </tr>
                        <tr>
                            <td class="tdtext">Seller:</td>
                            <td class="tddata"><?php echo $sellername = $this->requestAction('/users/getusername/'.$productinfo['Product']['user_id']); ?></td>
                         </tr>
                        <tr>
                               <td class="tdtext">Date of Purchase:</td>
                            <td class="tddata"><?php echo date('d/m/Y',  strtotime($productinfo['Cart']['add_date']));?></td>
                            
                        </tr>
                        <tr>
                            <td class="tdtext">Problem Type:</td>
                            <td class="tddata">
                                <select name="data[Dispute][problem_type]">
                                <option value="1">Item not received</option>
                                <option value="2">Item not received as described</option>
                                 </select>
                            </td>
                            
                        </tr>
                         <tr>
                             <td class="tdtext" style="vertical-align:top;">Problem Description:</td>
                            <td class="tddata">
                                <?php
                                echo $this->Form->hidden('Dispute.product_id', array('value' => $productinfo['Product']['id']));
                                echo $this->Form->hidden('Dispute.seller_id', array('value' => $productinfo['Product']['user_id']));
                                echo $this->Form->input('Dispute.problem_des', array('cols' => 47, 'class' => 'required','label'=>false));
                                 ?>
                                    </td>
                                </tr>
                                <tr>
                               <td class="tdtext">Upload 2 related Images:</td>
                            <td class="tddata">
                           <?php
                           echo $this->Form->input('Dispute.image1', array('label'=>false,'type'=>'file'));
                           echo $this->Form->input('Dispute.image2', array('label'=>false,'type'=>'file'));
                            ?></td>

                        </tr>
                              <tr>
                                <td colspan="2" style="padding-left:115px;">
                                <input type="submit" style="background:#73AE0B; color:#fff; font-size:14px;" name="button" id="button" value="Submit" />
                                </td>
                              </tr>
                                  </tbody>
                                    </table>
                                </form>
                                </div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js", "jquery.tablesorter.min.js", "jquery.tablednd.js")); ?>
<script type="text/javascript">
 jQuery(document).ready(function(){
		var v = jQuery("#productmessage").validate({
                    rules: {
                    },
      submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});


                 });


 </script>